import org.junit.Assert
import org.junit.Test

class TestKtSolution {
    @Test
    fun test1() {
        val array = intArrayOf(1, 3, 5, 6)
        val actual = searchInsert(array, 5)
//        val actualStr = array.contentToString()
        println(actual)

        val expected = 2
//        val expectedStr = "[1, 3, 5, 6]"

        Assert.assertEquals(expected, actual)
//        Assert.assertEquals(actualStr, expectedStr)
    }

    @Test
    fun test2() {
        val array = intArrayOf(1, 3, 5, 6)
        val actual = searchInsert(array, 2)
//        val actualStr = array.contentToString()
        println(actual)

        val expected = 1
//        val expectedStr = "[1, 3, 5, 6]"

        Assert.assertEquals(expected, actual)
//        Assert.assertEquals(actualStr, expectedStr)
    }

    @Test
    fun test3() {
        val array = intArrayOf(1, 3, 5, 6)
        val actual = searchInsert(array, 7)
//        val actualStr = array.contentToString()
        println(actual)

        val expected = 4
//        val expectedStr = "[1, 3, 5, 6]"

        Assert.assertEquals(expected, actual)
//        Assert.assertEquals(actualStr, expectedStr)
    }

    @Test
    fun test4() {

    }
}